/**
 * 
 */
package com.glela.platform.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.glela.dao.IMaterialConfigDao;
import com.glela.platform.mapper.UserMapper;
import com.glela.platform.model.SMaterialConfig;
import com.glela.platform.service.IMaterialConfigService;

/**
 * @author 
 */
@Service
public class MaterialConfigService implements IMaterialConfigService
{
	Logger logger = LoggerFactory.getLogger(MaterialConfigService.class);
	@Autowired
	private IMaterialConfigDao materialConfigDao;
	@Autowired
	private UserMapper userMapper;

	/* (non-Javadoc)
	 * @see com.glela.service.IMaterialConfigService#selectByType(java.lang.Integer)
	 */
	@Override
	public List<SMaterialConfig> selectByType(Integer type)
	{
		return materialConfigDao.selectByType(type);
	}

	/* (non-Javadoc)
	 * @see com.glela.service.IMaterialConfigService#selectSystemFlag(java.lang.String)
	 */
	@Override
	public Integer selectSystemFlag(String key)
	{
		return userMapper.selectSystemFlag(key);
	}

}
